package com.hoshiicloud.saleorder.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentParam;
import com.hoshiicloud.common.query.OmnipotentWrapper;
import com.hoshiicloud.saleorder.entity.OrderMain;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单信息 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-03
 */

public interface OrderMainService extends IService<OrderMain> {

    OrderMain getById(Long id);

    @Override
    boolean save(OrderMain entity);

    @Override
    boolean updateById(OrderMain entity);

    boolean updateByList(List<OrderMain> list);

    IPage<OrderMain> page(IPage<OrderMain> page, Wrapper<OrderMain> queryWrapper, String key);

    boolean deleteById(Long id);

    List<OrderMain> getByIds(List<Long> ids, String key);

    /**
     * 根据自定义条件查询商品主单信息
     */
    List<OrderMain> omniQueryOrderMain(List<OmnipotentWrapper> wrappers, String key);
}
